package spring_annotation.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true, prefix = "f_")
public class Person {

    @Value("张三")
    private String f_name;

    @Value("#{20-3}")
    private Integer f_age;

    @Value("${person.nickName}")
    private String nickName;

}
